/* 全局样式 */
:root {
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* 底部安全区域 */
.safeArea {
  height: var(--safe-area-inset-bottom);
}

/* 渐变背景 */
.gradientBg {
  background: linear-gradient(to bottom, #f5f3ff, #e0f2fe);
}

/* 毛玻璃效果 */
.glassEffect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 按钮动画 */
.buttonHover {
  transition: transform 0.2s ease;
}

.buttonHover:hover {
  transform: scale(1.02);
}

.buttonHover:active {
  transform: scale(0.98);
}

/* 加载动画 */
.loadingSpinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #8b5cf6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 页面过渡动画 */
.pageTransition {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式布局 */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .container {
    padding: 0 0.5rem;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .gradientBg {
    background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
  }

  .glassEffect {
    background: rgba(0, 0, 0, 0.8);
  }
} 